package org.mdrtwell.jdk15;

public enum Color {
	Red, Blue, White;
	public static void main(String[] args) {
		Color myColor = Color.Blue;
		System.out.println(myColor);
		for (Color color : Color.values()) {
			System.out.println(color);
		}
	}
}

enum Right {
	read, write, admin;
}

class Action {
	public boolean hasPrivliage(Right right) {
		/**
		 * do something
		 */
		return true;
	}
}
